#!/usr/bin/env python3
import os
# import threading
import common
import porn
from furl import furl
import re
from concurrent import futures
import logging
import datetime
from common import BeautySoupTool

logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
cur_dir = os.getcwd() + os.sep

if __name__ == '__main__':
    url = 'https://f.w24.rocks/forumdisplay.php?fid=19&orderby=dateline&filter=2592000&page=1'
    soup = BeautySoupTool.BeautySoupTool(url)
    title = soup.title
    find_all = soup.beautySoup.find_all('a')
    for tag in find_all:
        print(tag)
        if tag.has_attr('style'):
            print(tag['href'])
